/**
 * Copyright 2022-9999 the original author or authors.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.binghe.im.platform.common.model.vo;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author binghe(微信 : hacker_binghe)
 * @version 1.0.0
 * @description 群成员
 * @github https://github.com/binghe001
 * @copyright 公众号: 冰河技术
 */
@ApiModel("群成员简易信息VO")
public class GroupMemberSimpleVO implements Serializable {

    private static final long serialVersionUID = -1878612751093903962L;
    @ApiModelProperty("群内显示名称")
    private String aliasName;

    @ApiModelProperty("是否已退出")
    private Boolean quit;

    @ApiModelProperty("群组id")
    private Long groupId;

    @ApiModelProperty("创建时间")
    private Date createdTime;

    public GroupMemberSimpleVO() {
    }

    public GroupMemberSimpleVO(String aliasName, Boolean quit) {
        this.aliasName = aliasName;
        this.quit = quit;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public Boolean getQuit() {
        return quit;
    }

    public void setQuit(Boolean quit) {
        this.quit = quit;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
